home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Activation
/
RootFocus.cp
< prev
next >
Wrap
Text File
|
1997-06-28
|
369b
|
26 lines
// RootFocus.cp
#ifndef RootFocus_h
#include "RootFocus.h"
#endif
RootFocus& RootFocus::The()
{
static RootFocus root;
return root;
}
void RootFocus::Activate()
{
RootFocus& root( The() );
if ( !root.Active() )
root.Focus::Activate();
}
void RootFocus::Deactivate()
{
RootFocus& root( The() );
if ( root.Active() )
root.Focus::Deactivate();
}